class CreateCrews < ActiveRecord::Migration
  def self.up
    create_table :crews do |t|
      t.integer :member_id
      t.integer :group_id
      t.integer :role, :default => 0

      t.timestamps
    end

    add_index :crews, :member_id
    add_index :crews, :group_id
    
  end

  def self.down
    drop_table :crews
  end
end
